package com.barbeque.mall.util;

import com.barbeque.mall.mapper.MarketSystemMapper;
import com.sun.org.apache.bcel.internal.generic.INEG;
import com.sun.org.apache.bcel.internal.generic.NEW;
import org.springframework.beans.factory.annotation.Autowired;

import java.math.BigDecimal;

/**
 * @author ycc
 * @date 2022/07/17 17:39:49
 */
public class OrderConstant {
    /**
     * TODO:以下常量暂时支持OrderController使用
     * 订单状态对应的状态码
     */
    //未付款
    public static final short UNPAID_CODE = 101;
    //用户取消
    public static final short USERCANCEL_CODE = 102;
    //系统取消
    public static final short SYSCANCEL_CODE = 103;
    //已付款
    public static final short PAID_CODE = 201;
    //申请退款
    public static final short REQUESTREFUND_CODE = 202;
    //已退款
    public static final short REFUND_CODE = 203;
    //已发货
    public static final short SHIP_CODE = 301;
    //用户收货
    public static final short USERRECEIPT_CODE = 401;
    //系统收货
    public static final short SYSRECEIPT_CODE = 402;
    //退款方式
    public static final String REFUND_TYPE = "微信退款接口";

    public static final String SHIP_ORDER = "ship_time";

    public static final String SHIP_SORT = "desc";

    /**
     * TODO:以下常量暂时支持CartController使用
     */
    //已售后
    public static final Short AFTERSALES = 1;
    //未售后
    public static final Short NOAFTERSALES = 0;
    //确认
    public static final boolean CHECKED = true;
    //确认码
    public static final Integer CHECKED_CODE = 0;
    //未确认
    public static final boolean UNCHECKED = false;
    //未确认码
    public static final Integer UNCHECKED_CODE = 1;
    //订单交运费的最低价
    //public static final BigDecimal EXPRESS_FREIGHT_MIN = new BigDecimal(88.0);
    //订单交运费的最低价id
    public static final int EXPRESS_FREIGHT_MIN_ID = 6;
    //订单运费
    //public static final BigDecimal EXPRESS_FREIGHT_VALUE = new BigDecimal(8.0);
    //订单运费id
    public static final int EXPRESS_FREIGHT_VALUE_ID = 8;
    //增删改失败返回的结果状态码
    public static final Short FAILED_CODE = -1;
}
